package com.hig.ledger.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计量器具台账对象 ledger_measuring_instrument
 * 
 * @author ruoyi
 * @date 2024-09-22
 */
public class LedgerMeasuringInstrument extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 分类代码 */
    @Excel(name = "分类代码")
    private String classificationCode;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 测量范围 */
    @Excel(name = "测量范围")
    private String measuringRange;

    /** 准确度等级或不确定度 */
    @Excel(name = "准确度等级或不确定度")
    private String accuracyLevel;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String manufacturer;

    /** 出厂编号 */
    @Excel(name = "出厂编号")
    private String factoryNumber;

    /** 管理状态 */
    @Excel(name = "管理状态")
    private String status;

    /** 确认间隔 */
    @Excel(name = "确认间隔")
    private String confirmInterval;

    /** 检定日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检定日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date verificationDate;

    /** 有效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validityPeriod;

    /** 检定单位 */
    @Excel(name = "检定单位")
    private String verificationUnit;

    /** 使用部门 */
    @Excel(name = "使用部门")
    private String departmentOfUse;

    /** 使用地点 */
    @Excel(name = "使用地点")
    private String locationOfUse;

    /** ABC类 */
    @Excel(name = "ABC类")
    private String abcCategory;

    /** 备用 */
//    @Excel(name = "备用")
    private String remarkSpare;

    /** 备用1 */
//    @Excel(name = "备用1")
    private String remarkSpare1;

    /** 备用2 */
//    @Excel(name = "备用2")
    private String remarkSpare2;

    /** 部门ID */
//    @Excel(name = "部门ID")
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassificationCode(String classificationCode) 
    {
        this.classificationCode = classificationCode;
    }

    public String getClassificationCode() 
    {
        return classificationCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setMeasuringRange(String measuringRange) 
    {
        this.measuringRange = measuringRange;
    }

    public String getMeasuringRange() 
    {
        return measuringRange;
    }
    public void setAccuracyLevel(String accuracyLevel) 
    {
        this.accuracyLevel = accuracyLevel;
    }

    public String getAccuracyLevel() 
    {
        return accuracyLevel;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setFactoryNumber(String factoryNumber) 
    {
        this.factoryNumber = factoryNumber;
    }

    public String getFactoryNumber() 
    {
        return factoryNumber;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setConfirmInterval(String confirmInterval) 
    {
        this.confirmInterval = confirmInterval;
    }

    public String getConfirmInterval() 
    {
        return confirmInterval;
    }
    public void setVerificationDate(Date verificationDate) 
    {
        this.verificationDate = verificationDate;
    }

    public Date getVerificationDate() 
    {
        return verificationDate;
    }
    public void setValidityPeriod(Date validityPeriod) 
    {
        this.validityPeriod = validityPeriod;
    }

    public Date getValidityPeriod() 
    {
        return validityPeriod;
    }
    public void setVerificationUnit(String verificationUnit) 
    {
        this.verificationUnit = verificationUnit;
    }

    public String getVerificationUnit() 
    {
        return verificationUnit;
    }
    public void setDepartmentOfUse(String departmentOfUse) 
    {
        this.departmentOfUse = departmentOfUse;
    }

    public String getDepartmentOfUse() 
    {
        return departmentOfUse;
    }
    public void setLocationOfUse(String locationOfUse) 
    {
        this.locationOfUse = locationOfUse;
    }

    public String getLocationOfUse() 
    {
        return locationOfUse;
    }
    public void setAbcCategory(String abcCategory) 
    {
        this.abcCategory = abcCategory;
    }

    public String getAbcCategory() 
    {
        return abcCategory;
    }
    public void setRemarkSpare(String remarkSpare) 
    {
        this.remarkSpare = remarkSpare;
    }

    public String getRemarkSpare() 
    {
        return remarkSpare;
    }
    public void setRemarkSpare1(String remarkSpare1) 
    {
        this.remarkSpare1 = remarkSpare1;
    }

    public String getRemarkSpare1() 
    {
        return remarkSpare1;
    }
    public void setRemarkSpare2(String remarkSpare2) 
    {
        this.remarkSpare2 = remarkSpare2;
    }

    public String getRemarkSpare2() 
    {
        return remarkSpare2;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classificationCode", getClassificationCode())
            .append("name", getName())
            .append("model", getModel())
            .append("measuringRange", getMeasuringRange())
            .append("accuracyLevel", getAccuracyLevel())
            .append("manufacturer", getManufacturer())
            .append("factoryNumber", getFactoryNumber())
            .append("status", getStatus())
            .append("confirmInterval", getConfirmInterval())
            .append("verificationDate", getVerificationDate())
            .append("validityPeriod", getValidityPeriod())
            .append("verificationUnit", getVerificationUnit())
            .append("departmentOfUse", getDepartmentOfUse())
            .append("locationOfUse", getLocationOfUse())
            .append("abcCategory", getAbcCategory())
            .append("remark", getRemark())
            .append("remarkSpare", getRemarkSpare())
            .append("remarkSpare1", getRemarkSpare1())
            .append("remarkSpare2", getRemarkSpare2())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("deptId", getDeptId())
            .toString();
    }
}
